<?php
/**
 * Cms_Service_Taxation
 * 
 * Provides tax calculation service
 * 
 * @category   Cms
 * @package    Cms_Service
 */
class Cms_Service_Taxation
{
       
    public function addTax($amount, $taxrate)
    {
        $tax = ($amount * $taxrate)/100;
        $amount = round($amount + $tax,2);
        
        return $amount;
    }

    public function taxAmount($amount, $taxrate)
    {
        $tax = ($amount * $taxrate)/100;
        $amount = round($tax,2);

        return $amount;
    }
}